//
//  MKUIElementViewImage.h
//  MKUI
//  右侧显示一张图片
//  Created by 苏尚进 on 2023/7/13.
//  Copyright © 2023 moon. All rights reserved.
//

#import "MKUIElementViewBase.h"

NS_ASSUME_NONNULL_BEGIN
@interface MKUIElementViewImage : MKUIElementViewBase
@property(nonatomic,readonly) UIImageView *detailImageView;
@property(nonatomic,assign) UIEdgeInsets detailImageMarggin;//默认为0
@property(nonatomic,assign) CGSize detailImageSize;//默认为28x28
@property(nonatomic,strong,nullable) MKUILayoutConstraintItemWrapper *detailImageViewLayoutConstraint;//detailImageView的布局约束
@property(nonatomic,strong,nullable) UIImage *detailImage;//详细图片
@end
NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN
@interface MKUIElementListViewCellImage : MKUIElementListViewCellBase
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
@property(nonatomic,readonly,nullable) __kindof MKUIElementViewImage *elementView;
#pragma clang diagnostic pop
@end
NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN
@interface MKUIElementTableViewCellModelImage : MKUIElementTableViewCellModelBase
@property(nonatomic,strong,nullable) UIImage *el_detailImage;
@property(nonatomic,assign) UIEdgeInsets el_detailImageMarggin;
- (UIEdgeInsets)el_detailImageMargginWithOtherWise:(UIEdgeInsets)others;
@property(nonatomic,assign) CGSize el_detailImageSize;
- (CGSize)el_detailImageSizeWithOtherWise:(CGSize)others;

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
@property(nonatomic,readonly,nullable) __kindof MKUIElementViewImage *el_elementView;
#pragma clang diagnostic pop
@end

@interface MKUIElementTableViewCellImage : MKUIElementTableViewCellBase
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
@property(nonatomic,readonly,nullable) __kindof MKUIElementViewImage *elementView;
#pragma clang diagnostic pop
@end

NS_ASSUME_NONNULL_END
